image: Fix snapshot position
authorTimm Bäder <mail@baedert.org>
Tue, 30 May 2017 18:06:20 +0000 (20:06 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:13 +0000 (21:27 -0400)
gtk/gtkimage.c

index 7479718983aa294d3c25d030855975209d93bfa6..b2c3590b6d1fa9d276bce1a55dd6af07a5cb63ba 100644 (file)
@@ -1391,15 +1391,13 @@ gtk_image_snapshot (GtkWidget   *widget,
 {
   GtkImage *image = GTK_IMAGE (widget);
   GtkImagePrivate *priv = gtk_image_get_instance_private (image);
-  GtkAllocation allocation;
   GtkAllocation content_allocation;
   int x, y, width, height;
   gint w, h, baseline;
 
-  gtk_widget_get_allocation (widget, &allocation);
   gtk_widget_get_content_allocation (widget, &content_allocation);
-  x = content_allocation.x - allocation.x;
-  y = content_allocation.y - allocation.y;
+  x = 0;
+  y = 0;
   width = content_allocation.width;
   height = content_allocation.height;